from django.db import models

# Create your models here.
# class ClassLevel1(models.Model):
#     name = models.CharField(max_length=100, verbose_name=u'名称')
#     msg = models.CharField(max_length=300, verbose_name=u'描述',null=True, blank=True)
#     def __str__(self):
#         return self.name

#     class Meta:
#         verbose_name_plural = "商品一级分类"

# class ClassLevel2(models.Model):
#     name = models.CharField(max_length=100, verbose_name=u'名称')
#     msg = models.CharField(max_length=300, verbose_name=u'描述',null=True, blank=True)
#     ClassID = models.ForeignKey('ClassLevel1',null=True, blank=True,on_delete=models.CASCADE,verbose_name=u'一级分类')
#     def __str__(self):
#         return self.name

#     class Meta:
#         verbose_name_plural = "商品二级分类"

# class ClassLevel3(models.Model):
#     name = models.CharField(max_length=100, verbose_name=u'名称')
#     msg = models.CharField(max_length=300, verbose_name=u'描述',null=True, blank=True)
#     ClassID = models.ForeignKey('ClassLevel2',null=True, blank=True,on_delete=models.CASCADE,verbose_name=u'二级分类')
    
#     def __str__(self):
#         return self.name

#     class Meta:
#         verbose_name_plural = "商品三级分类"

class config(models.Model):
    name = models.CharField(max_length=100, verbose_name=u'名称')
    msg = models.CharField(max_length=300, verbose_name=u'描述',null=True, blank=True)
    config = models.TextField(null=True, blank=True, verbose_name=u'自定义配置')

    def __str__(self):
        return self.name

    class Meta:
        verbose_name_plural = "配置数据"